#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"

void test1()
{
	SL slist;
	SLInit(&slist);

	SLPushBack(&slist,1);
	SLPushBack(&slist,2);
	SLPushBack(&slist,3);
	SLPushBack(&slist,4);
	SLPushBack(&slist,5);
	SLPrint(&slist);

	SLPushFront(&slist, 6);
	SLPushFront(&slist, 7);
	SLPushFront(&slist, 8);
	SLPrint(&slist);

	/*SLPopBack(&slist);
	SLPopBack(&slist);
	SLPopBack(&slist);
	SLPrint(&slist);

	SLPopFront(&slist);
	SLPopFront(&slist);
	SLPopFront(&slist);
	SLPopFront(&slist);
	SLPopFront(&slist);
	SLPrint(&slist);*/

	SLInsert(&slist, 0, 9);
	SLInsert(&slist, 4, 10);
	SLInsert(&slist, 10, 11);
	SLPrint(&slist);

	SLErase(&slist, 0);
	SLErase(&slist, 5);
	SLErase(&slist, 8);
	SLPrint(&slist);

	int i=SLFind(&slist, 4);
	printf("%d\n", i);

	SLDestory(&slist);
	SLPrint(&slist);
}



int main()
{
	test1();
	return 0;
}
